<div class="input-group">
    <input type="text" class="form-control" ng-click="modal.show()"/>
    <span class="input-group-addon" ng-click="modal.show()"><i class="fa fa-user"></i></span>
</div>
<!-- 模态框（Modal） -->
<div ed-modal="modal"
     data-options="title: '选择人员', icon: 'icon-user-following', width: 600, onShow: 'onShow', onOkClick: 'select', onHidden: 'onHidden'">
    <div class="form-group user-select">
        <div ng-class="{'col-md-8': multiple, 'col-md-12': !multiple}">
            <div class="form-group" style="margin: -10px 0 8px 20px;" ng-show="multiple && false">
                <div class="radio-list">
                    <label class="radio-inline">
                        <input type="radio" name="optionsRadios" ng-model="showType" value="org" checked> 按组织机构 </label>
                    <label class="radio-inline">
                        <input type="radio" name="optionsRadios" ng-model="showType" value="pos"> 按岗位 </label>
                </div>
            </div>
            <div class="form-group" style="margin: -10px 0 0">
                <input type="text" class="form-control" ng-model="userName" ng-change="search()" placeholder="输入用户姓名查询"/>
            </div>
            <ul class="ztree" name='orgTree' ng-show="showType == 'org'"
                style="height:350px;border:0px inset gray; overflow:auto;background:#F6F6F6;"></ul>
            <ul class="ztree" name='posTree' ng-show="showType == 'pos'" ng-if="false"
                style="height:350px;border:0px inset gray; overflow:auto;background:#F6F6F6;"></ul>
        </div>

        <div class="col-md-4" ng-show="multiple">
            <div class="form-group" style="margin: -10px 0 8px;">
                <label class="control-label">已选择的人员</label>
            </div>
            <ul class="list-group" style="height:350px;border:0px inset gray; overflow:auto;background:#F6F6F6;">
                <li class="list-group-item" ng-repeat="user in userSelected">{{user.name}}
                    <i class="fa fa-times" style="float: right;" ng-click="unselect(user)"></i>
                </li>
            </ul>
        </div>

    </div>
</div>